let t = require;
let e = module;
let o = e.exports;
o.default = e.exports;

('use strict');
console.log('start');
var _n118,
  i =
    (this && this.__extends) ||
    ((_n118 = function n(t, e) {
      return (_n118 =
        Object.setPrototypeOf ||
        ({
          __proto__: []
        } instanceof Array &&
          function (t, e) {
            t.__proto__ = e;
          }) ||
        function (t, e) {
          for (var o in e) {
            Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
          }
        })(t, e);
    }),
    function (t, e) {
      function o() {
        this.constructor = t;
      }
      _n118(t, e),
        (t.prototype =
          null === e
            ? Object.create(e)
            : ((o.prototype = e.prototype), new o()));
    }),
  r =
    (this && this.__decorate) ||
    function (t, e, o, n) {
      var i,
        r = arguments.length,
        a =
          r < 3
            ? e
            : null === n
            ? (n = Object.getOwnPropertyDescriptor(e, o))
            : n;
      if (
        'object' ==
          (typeof Reflect === 'undefined' ? 'undefined' : typeof Reflect) &&
        'function' == typeof Reflect.decorate
      )
        a = Reflect.decorate(t, e, o, n);
      else
        for (var s = t.length - 1; s >= 0; s--) {
          (i = t[s]) &&
            (a = (r < 3 ? i(a) : r > 3 ? i(e, o, a) : i(e, o)) || a);
        }
      return r > 3 && a && Object.defineProperty(e, o, a), a;
    };
Object.defineProperty(o, '__esModule', {
  value: !0
}),
  (o.LoadingPanel = void 0);
var a = t('UIViewRes'),
  s = t('UIPanel'),
  c = t('UILayer'),
  l = t('ResMrg'),
  u = t('GlobalEventMrg'),
  h = t('ComUtils'),
  p = t('LangCfg'),
  f = t('App'),
  d = cc.ProgressBar,
  g = t('GameSDK'),
  _ = cc._decorator,
  y = _.ccclass,
  C =
    (_.property,
    (function (t) {
      function e() {
        return (null !== t && t.apply(this, arguments)) || this;
      }
      return (
        i(e, t),
        (e.prototype.onInit = function () {
          (this.counsel = h.default.getNode(this.view, 'counsel')),
            (this.counsel.active = g.default.showCounsel),
            (this.copyright = h.default.getComponent(
              cc.Label,
              this.view,
              'copyright'
            )),
            (this.copyright.string =
              g.default.company + '      ' + g.default.copyright),
            (this.progressBar = this.view
              .getChildByName('progressBar')
              .getComponent(d)),
            (this.progressBar.progress = 0),
            (this._txtLoading = h.default.getComponent(
              cc.Label,
              this.view,
              'progressBar/txtLoading'
            )),
            l.ResMrg.startLoadConfig();
        }),
        (e.prototype.onLang = function () {
          t.prototype.onLang.call(this),
            p.LangCfg.isLang(f.LanguageEnum.Chinese)
              ? (this._txtLoading.string = '正在加载中。。。')
              : (this._txtLoading.string = 'Loading...');
        }),
        (e.prototype.onShow = function () {
          t.prototype.onShow.call(this),
            (this.view.opacity = 0),
            cc
              .tween(this.view)
              .to(0.3, {
                opacity: 255
              })
              .start(),
            u.default.on(
              u.GlobalEvent.LOADING_PROCESS,
              this.processHandler,
              this
            );
        }),
        (e.prototype.onClose = function () {
          t.prototype.onClose.call(this),
            cc.Tween.stopAllByTarget(this.progressBar),
            u.default.targetOff(this);
        }),
        (e.prototype.processHandler = function (t) {
          this.progressBar.progress = t;
        }),
        (e.RES = new a.UIViewRes(
          'LoadingView',
          'Loading',
          c.UILayer.MainLayer
        )),
        r([y('LoadingPanel')], e)
      );
    })(s.default));
(o.LoadingPanel = C), console.log('end');
module.exports = e.exports;
